<div class="primary">
<?= $form->render() ?>
</div>

<div class="secondary">
	<section class="txp-content-switcher">
		<h4 class="doc-outline"><?= $lang->get('all_pages') ?></h4>
		<p class="action-create"><a href="<?= $links['new_page'] ?>"><?= $lang->get('create_new_page') ?></a></p>
		<ul>
<? foreach ($pages as $page): ?>
			<li<?= !empty($page['selected']) ? ' class="selected"' : '' ?>>
				<?= !empty($page['selected']) ? $page['name'] : "<a href=\"{$page['link']}\">{$page['name']}</a>" ?>
<? if (!$page['default']): ?>
				<?= $page['delete_form']->render('delete_page_form') ?>
<? endif; ?>
			</li>
<?endforeach; ?>
		</ul>
	</section>
	<aside id="tagbuild_links" role="complementary">
		<h4 class="doc-outline"><?= $lang->get('tagbuilder') ?></h4>
	
	</aside>
</div>




